package com.epam.productstore.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

public class ContextPathListener implements ServletContextListener{

	private static String contextRealPath;

	public void contextInitialized(ServletContextEvent event) {
		contextRealPath = event.getServletContext().getRealPath("/");
	}

	public void contextDestroyed(ServletContextEvent event) {
		
	}

	public static String getContextRealPath() {
		return contextRealPath;
	}


}
